package com.kuang.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

@TableName("kss_banner")
public class Banner implements java.io.Serializable {

    //主键
    @TableId(type = IdType.ID_WORKER)
    private Long id;
    // 标题
    private String title;
    // 描述
    private String description;
    // 封面图
    private String appimg;
    // 打开方式 redirect 或者 swtichtab
    private String appopen;
    // 打开的连接
    private String applink;
    // 排序
    private Integer appsort;
    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    // 更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    // 发布状态 0 未发布 1 发布
    private Integer status;
    // 添加人
    private Long userId;
    // 添加人姓名
    private String nickname;
    // 头像人的头像
    private String avatar;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getAppimg() {
        return appimg;
    }

    public void setAppimg(String appimg) {
        this.appimg = appimg;
    }

    public String getAppopen() {
        return appopen;
    }

    public void setAppopen(String appopen) {
        this.appopen = appopen;
    }

    public String getApplink() {
        return applink;
    }

    public void setApplink(String applink) {
        this.applink = applink;
    }

    public Integer getAppsort() {
        return appsort;
    }

    public void setAppsort(Integer appsort) {
        this.appsort = appsort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
